package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 股票平均K线
 * </p>
 *
 * @author chl
 * @since 2025-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DStockTradeAvg对象", description="股票平均K线")
public class DStockTradeAvg extends Model<DStockTradeAvg> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "TS股票代码")
    private String tsCode;

    @ApiModelProperty(value = "股票名称")
    private String name;

    @ApiModelProperty(value = "交易日期")
    private String tradeDate;

    @ApiModelProperty(value = "5日均线")
    private Double avg5;

    @ApiModelProperty(value = "10日均线")
    private Double avg10;

    @ApiModelProperty(value = "20日均线")
    private Double avg20;

    @ApiModelProperty(value = "30日均线")
    private Double avg30;

    @ApiModelProperty(value = "60日均线")
    private Double avg60;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
